package com.dianqiu.common.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.dianqiu.base.bean.BaseTO;

/**
 * DqMatchPool entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dq_match_pool", catalog = "dq_dev")
public class DqMatchPoolTO extends BaseTO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer poolId;
	private DqCodeTblTO dqCodeTbl;
	private DqMatchTO dqMatch;
	private String userId;
	private Integer ruleId;
	private Integer bettedInd;
	private Double winPercnetage;

	@Id
	@Column(name = "POOL_ID", unique = true, nullable = false)
	public Integer getPoolId() {
		return this.poolId;
	}

	public void setPoolId(Integer poolId) {
		this.poolId = poolId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "MTH_STATUS_CD", nullable = false)
	public DqCodeTblTO getDqCodeTbl() {
		return this.dqCodeTbl;
	}

	public void setDqCodeTbl(DqCodeTblTO dqCodeTbl) {
		this.dqCodeTbl = dqCodeTbl;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "MTH_ID", nullable = false)
	public DqMatchTO getDqMatch() {
		return this.dqMatch;
	}

	public void setDqMatch(DqMatchTO dqMatch) {
		this.dqMatch = dqMatch;
	}

	@Column(name = "USER_ID", nullable = false, length = 13)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "RULE_ID")
	public Integer getRuleId() {
		return this.ruleId;
	}

	public void setRuleId(Integer ruleId) {
		this.ruleId = ruleId;
	}

	@Column(name = "BETTED_IND", nullable = false)
	public Integer getBettedInd() {
		return this.bettedInd;
	}

	public void setBettedInd(Integer bettedInd) {
		this.bettedInd = bettedInd;
	}

	@Column(name = "WIN_PERCNETAGE", precision = 22, scale = 0)
	public Double getWinPercnetage() {
		return this.winPercnetage;
	}

	public void setWinPercnetage(Double winPercnetage) {
		this.winPercnetage = winPercnetage;
	}

}